package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 创建摘要存证证据点请求类
 * @date 2020-04-15 22:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "创建摘要存证证据点请求类", description = "场景式存证，创建摘要存证证据点请求类")
public class AddSegmentOriginalDigestReq extends BaseReqObj {

    private static final long serialVersionUID = -2832730719896812671L;

    @ApiModelProperty(value = "业务凭证中某一证据点名称 ID", notes = "业务凭证中某一证据点名称 ID", dataType = "String", required = true)
    @NotBlank(message = "业务凭证证据点 ID 不能为空")
    private String segmentTempletId;

    @ApiModelProperty(value = "JSON 字符串格式的业务数据，其中所有key值必须为环节属性模板表中对应环节模板记录的paramName字段的值",
        notes = "JSON字符串格式的业务数据，其中所有key值必须为环节属性模板表中对应环节模板记录的paramName字段的值 ID", dataType = "String")
    private String segmentData;

    @ApiModelProperty(value = "文档 OSS 短路径地址，与 segmentData 字段不可同时为空\n短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf",
        notes = "文档 OSS 短路径地址，与 segmentData 字段不可同时为空\n短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf", dataType = "String")
    private String fileUrl;

}
